[paket]
tanim   = 0ad gerçek zamanlı strateji oyunu
paketci = milisarge
grup    = oyun
url     = https://play0ad.com
arsiv   = ${isim}-${surum}-alpha

[gerek]
derleme = perl cmake nspr python sdl2 boost gloox enet openal libpng libsodium libxml2 miniupnpc wxgtk3 libxcursor fmt rust
calisma = 0ad-data

[kaynak]
1       = https://releases.wildfiregames.com/${isim}-${surum}-alpha-unix-build.tar.xz
dosya   = update-workspaces.sh
2       = https://github.com/0ad/0ad/commit/087a277e66c0456c2d6fdb7403d032ad09cbd18b.patch

[sha256]
1       = 325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8

[derle]
betik   = export SHELL=/bin/bash
betik   = patch -Np1 -i $KAYNAK_DIZIN/087a277e66c0456c2d6fdb7403d032ad09cbd18b.patch
betik   = export WX_CONFIG="wx-config"
betik   = cd build/workspaces ; cp -f $SRC/update-workspaces.sh .; chmod +x update-workspaces.sh
betik   = ./update-workspaces.sh -j$(nproc) --without-pch --bindir=/usr/bin --libdir=/usr/lib/0ad --datadir=/usr/share/0ad/data
betik   = cd gcc && VERBOSE=1 make

[pakur]
betik = install -d "${PKG}"/usr/{bin,lib/0ad,share/0ad/data}
betik = install -Dm755 binaries/system/pyrogenesis "${PKG}/usr/bin"
betik = install -Dm755 binaries/system/*.so "${PKG}/usr/lib/0ad"
betik = cp -r binaries/data/l10n/ "${PKG}/usr/share/0ad/data/"
betik = install -Dm755 build/resources/0ad.sh "${PKG}/usr/bin/0ad"
betik = install -Dm644 build/resources/0ad.desktop "${PKG}/usr/share/applications/0ad.desktop"
betik = install -Dm644 build/resources/0ad.png "${PKG}/usr/share/pixmaps/0ad.png"
